package main

import (
	"fmt"
	"gin-admin/global"

	"github.com/mojocn/base64Captcha"
)

func GenerateCaptcha() {
	captcha := base64Captcha.NewCaptcha(base64Captcha.DefaultDriverDigit, base64Captcha.DefaultMemStore)
	id, b64s, a, err := captcha.Generate()
	if err != nil {
		global.GA_LOGGER.Error("验证码生成失败")
	}
	fmt.Println(id)
	fmt.Println(b64s)
	fmt.Println(a)

}

func main() {
	GenerateCaptcha()
}
